package com.cybertron.ironhide.manage.persistence;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.cybertron.ironhide.manage.common.base.Pager;
import com.cybertron.ironhide.manage.domain.SeedUrl;

public interface SeedUrlMapper {
	int deleteByPrimaryKey(String id);

	int insert(SeedUrl record);

	int insertSelective(SeedUrl record);

	SeedUrl selectByPrimaryKey(String id);

	int updateByPrimaryKeySelective(SeedUrl record);

	int updateByPrimaryKey(SeedUrl record);

	List<SeedUrl> selectByCategoryId(String id, Pager pager);

	void updateCateIdByParentCateId(@Param("cateId") String cateId,
			@Param("parentCateId") String parentCateId);

	void deleteByCategoryId(String id);

	List<Map<String, Object>> selectSeedUrls(String categoryId);

	SeedUrl selectByUrlAndCategoryId(@Param("url") String url,
			@Param("categoryId") String categoryId);

	List<SeedUrl> selectByHost(String host);
}